Skip to main content

Update Account Status

'UpdateAccountStatus' API enables to change the status of an account

Bank or financial institution can update account status with any one of the valid statuses depending on the requirement. On providing account number and the required status to be updated as request, the account status is updated.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription
method
Mandatory
String
API method that is being called to update account status through account service
Constant value: "AccountService.UpdateAccountStatus"
id
Mandatory
String
Unique ID of API request
Sample value: "1"
params
Mandatory
Object
api
Mandatory
Object
signature
Mandatory
String
Signature for request validation
Sample value: "signature"
keyId
Mandatory
String
API key used for request authentication
Sample value: "ApplicationKeyId"
credential
Mandatory
String
API credential provided by NetXD
Sample value: "credential"
payload
Mandatory
Object
accountNumber
Mandatory
String
Account number for which the status is to be updated
Sample value: "200238325468489"
status
Mandatory
Enum
Status to be updated for the account
Valid values:
- ACTIVE: The account is open for all transactions.
- DORMANT: Only inbound credit transactions are allowed. The account will automatically transition to Active when an inbound credit transaction occurs.
- SUSPENDED: No transactions are allowed in this state. The account must be manually changed to Active, typically due to compliance issues. It can also be reactivated based on a court order.
- CLOSED: The account is permanently closed, and no transactions are allowed. Once an account is in this state, it cannot be reactivated.
Sample value: "DORMANT"

curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"method":"AccountService.UpdateAccountStatus","id":"1","params":{"api":{"signature":"{{signature}}","keyId":"{{ApplicationKeyId}}","credential":"{{credential}}"},"payload":{"accountNumber":"200238325468489","Status":"DORMANT"}}}'

Body


{
"method": "AccountService.UpdateAccountStatus",
"id": "1",
"params": {
"api": {
"signature": "{{signature}}",
"keyId": "{{ApplicationKeyId}}",
"credential": "{{credential}}"
},
"payload": {
"accountNumber": "200238325468489",
"Status": "DORMANT"
}
}
}

Response: 200

Payload Parameters
ParameterDescription
idString
Response ID echoed from the request ID
Sample value: "1"
resultObject
Container for account result details
result.CustomerIdString
Unique ID of the customer associated with the account
Sample value: "100000000001002"
result.AccountNumberString
Account number for which the status is updated
Sample value: "200238325468489"
result.InstitutionIdString
Routing number of the bank or financial institution associated with the account
Sample value: "101115315"
result.NameString
Name of the account
Sample value: "General Account"
result.StatusEnum
Updated status of the account
Valid values:
- ACTIVE: The account is open for all transactions.
- DORMANT: Only inbound credit transactions are allowed. The account will automatically transition to Active when an inbound credit transaction occurs.
- SUSPENDED: No transactions are allowed in this state. The account must be manually changed to Active, typically due to compliance issues. It can also be reactivated based on a court order.
- CLOSED: The account is permanently closed, and no transactions are allowed. Once an account is in this state, it cannot be reactivated.
Sample value: "DORMANT"

{
"id": "1",
"result": {
"CustomerId": "100000000001002",
"AccountNumber": "200238325468489",
"InstitutionId": "101115315",
"Name": "General Account",
"Status": "DORMANT"
}
}